package com.qeeyou.apps.android.craftsman.po;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by xuchengxiong on 2018/1/2.
 */

public class UserAddressInfo implements Parcelable {

    private String addressid;        //Address ID
    private String userid;           //用户ID
    private String name;             //用户名
    private String provinceid;       //省份ID
    private String cityid;           //市ID
    private String contactway;       //联系方式
    private String address;          //详细地址
    private String coordinates;      //经纬度
    private String isdefault;        //是否是默认地址（1默认）

    public String getAddressid() {
        return addressid;
    }

    public void setAddressid(String addressid) {
        this.addressid = addressid;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProvinceid() {
        return provinceid;
    }

    public void setProvinceid(String provinceid) {
        this.provinceid = provinceid;
    }

    public String getCityid() {
        return cityid;
    }

    public void setCityid(String cityid) {
        this.cityid = cityid;
    }

    public String getContactway() {
        return contactway;
    }

    public void setContactway(String contactway) {
        this.contactway = contactway;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCoordinates() {
        return coordinates;
    }

    public void setCoordinates(String coordinates) {
        this.coordinates = coordinates;
    }

    public String getIsdefault() {
        return isdefault;
    }

    public void setIsdefault(String isdefault) {
        this.isdefault = isdefault;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.addressid);
        dest.writeString(this.userid);
        dest.writeString(this.name);
        dest.writeString(this.provinceid);
        dest.writeString(this.cityid);
        dest.writeString(this.contactway);
        dest.writeString(this.address);
        dest.writeString(this.coordinates);
        dest.writeString(this.isdefault);
    }

    public UserAddressInfo() {
    }

    protected UserAddressInfo(Parcel in) {
        this.addressid = in.readString();
        this.userid = in.readString();
        this.name = in.readString();
        this.provinceid = in.readString();
        this.cityid = in.readString();
        this.contactway = in.readString();
        this.address = in.readString();
        this.coordinates = in.readString();
        this.isdefault = in.readString();
    }

    public static final Parcelable.Creator<UserAddressInfo> CREATOR = new Parcelable.Creator<UserAddressInfo>() {
        @Override
        public UserAddressInfo createFromParcel(Parcel source) {
            return new UserAddressInfo(source);
        }

        @Override
        public UserAddressInfo[] newArray(int size) {
            return new UserAddressInfo[size];
        }
    };
}
